package part1.oo.ooday05.ooday05test;

public class EnumDemo {
    public static void main(String[] args) {
        Season s = Season.SPRING;
        switch (s){
            case SPRING:
                System.out.println("春天来了");
                break;
            case SUMMER:
                System.out.println("夏天来了");
                break;
            case AUTUMN:
                System.out.println("秋天来了");
                break;
            case WINTER:
                System.out.println("冬天来了");
                break;
        }
        Season[] seasons = Season.values();
        for (Season season:seasons) {
            System.out.println(season.getSeasonName());
        }
    }
}
